<?php  /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/topMain'); ?>
    <div class="container" id="content">
       <div class="header">
        <div class="weblogo">
        <p style="text-align:right;padding:5px;">
        <?php if(yii::app()->user->isGuest):?>
              <a href="<?php echo yii::app()->baseUrl.'/site/login'?>">登陆</a>
        <?php else:?>
              <a href="<?php echo yii::app()->baseUrl.'/user/view'?>">个人中心</a>
            <?php if(yii::app()->user->checkAccess('root')||yii::app()->user->checkAccess('admin')):?>
              <a href="<?php echo yii::app()->baseUrl.'/admin'?>">后台管理</a>
            <?php endif;?>
              <a href="<?php echo yii::app()->baseUrl.'/site/logout'?>">注销</a>
        <?php endif;?>
        </p>
        </div>
    <?php
        $this->widget('NavigationBar',
        array(
            'specialMenuItem'=>array(
 /*               array(
                    'name'=>'教学成果',
                    'relegation'=>'2',
                    'url'=>'/display/teachingachievement',
                ),*/
               /* array(
                    'name'=>'教学团队',
                    'relegation'=>'2',
                    'url'=>'/teacher',
                ),*/
                array(
                    'name'=>'实验平台展示',
                    'relegation'=>'4',
                    'url'=>'/display/courseList',
                ),
                array(
                    'name'=>'仪器资源',
                    'relegation'=>'6',
                    'url'=>'/display/instrument',
                ),
                array(
                    'name'=>'学习资源',
                    'relegation'=>'6',
                    'url'=>'/display/teach',
                ),
 /*               array(
                    'name'=>'平台资源',
                    'relegation'=>'6',
                    'url'=>'/display/platformresources',
                ),*/
           ),
        )
    );
        ?>
        <?php $this->widget('SlideBox',array('type'=>News::TYPE_HEADIMAGE,'height'=>350));?>
        </div>
        <?php if(count($this->breadcrumbs) !== 0):?>
		<?php /*$this->widget('zii.widgets.CBreadcrumbs', array(
            'links'=>$this->breadcrumbs,
            'htmlOptions'=>array('class'=>'breadcrumb')
        )); */?><!-- breadcrumbs -->
        <?php  $this->widget('BreadcrumbBox',array(
                    'menu'=>$this->breadcrumbs,
        )); ?><!-- breadcrumbs -->
        <?php endif;?>

            <div class="leftcontent floatl" style="float:left;background:white;">
           <?php echo $content; ?>
            </div>
            <div class="rightcontent floatr" style="float:right;background:white;">
            <?php
                if(isset($this->menuitemName))
                {
                    $this->widget('MenuList',array(
                        'header'=>$this->menuitemName,
                        'menu'=>$this->menuList,
                    ));
                }
            ?>
            <?php /*if((yii::app()->controller->id == "site" ||
            yii::app()->controller->id == "instrument" || 
            yii::app()->controller->id == "ask") && $this->getAction()->getId() !== 'login'):?>
            <?php $this->widget('LoginBox',
                    array(
                        'controller'=>$this,
                ));?>
            <?php endif;*/?>
	    <?php $this->widget('AnnouncementBox');?>
<?php
                $this->widget('NetworkServices',array(
                    'column'=>array(
                        array(
                            'title'=>'实验室预约系统',
                            'url'=>yii::app()->baseUrl.'/labm',
                            'image'=>'/images/lab.jpg',
                        ),
                        array(
                            'title'=>'大型仪器共享系统',
                            'url'=>yii::app()->baseUrl.'/instrument',
                            'image'=>'/images/acm.jpg',
                        ),
                        array(
                            'title'=>'交互平台',
                            'url'=>yii::app()->baseUrl.'/ask',
                            'image'=>'/images/ask.jpg',
                        ),

                   ),
                ));

?>

    <?php $this->widget('ExpPlatform',array('count'=>5));?>
	</div>
</div><!-- content -->
<?php $this->endContent(); ?>
